package com.dxy.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dxy.common.pojo.Group;
import com.dxy.user.mapper.GroupMapper;
import com.dxy.user.service.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupServiceImpl extends ServiceImpl<GroupMapper, Group> implements GroupService {

    @Autowired
    private GroupMapper groupMapper;

    @Override
    public List<Group> findUserGroup(Integer userId) {
        return groupMapper.findUserGroup(userId);
    }
}
